package campus.model;

import java.util.ArrayList;
import java.util.List;

public class AccountSettingsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AccountSettingsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andZhIdIsNull() {
            addCriterion("zh_id is null");
            return (Criteria) this;
        }

        public Criteria andZhIdIsNotNull() {
            addCriterion("zh_id is not null");
            return (Criteria) this;
        }

        public Criteria andZhIdEqualTo(Integer value) {
            addCriterion("zh_id =", value, "zhId");
            return (Criteria) this;
        }

        public Criteria andZhIdNotEqualTo(Integer value) {
            addCriterion("zh_id <>", value, "zhId");
            return (Criteria) this;
        }

        public Criteria andZhIdGreaterThan(Integer value) {
            addCriterion("zh_id >", value, "zhId");
            return (Criteria) this;
        }

        public Criteria andZhIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("zh_id >=", value, "zhId");
            return (Criteria) this;
        }

        public Criteria andZhIdLessThan(Integer value) {
            addCriterion("zh_id <", value, "zhId");
            return (Criteria) this;
        }

        public Criteria andZhIdLessThanOrEqualTo(Integer value) {
            addCriterion("zh_id <=", value, "zhId");
            return (Criteria) this;
        }

        public Criteria andZhIdIn(List<Integer> values) {
            addCriterion("zh_id in", values, "zhId");
            return (Criteria) this;
        }

        public Criteria andZhIdNotIn(List<Integer> values) {
            addCriterion("zh_id not in", values, "zhId");
            return (Criteria) this;
        }

        public Criteria andZhIdBetween(Integer value1, Integer value2) {
            addCriterion("zh_id between", value1, value2, "zhId");
            return (Criteria) this;
        }

        public Criteria andZhIdNotBetween(Integer value1, Integer value2) {
            addCriterion("zh_id not between", value1, value2, "zhId");
            return (Criteria) this;
        }

        public Criteria andZhCodeIsNull() {
            addCriterion("zh_code is null");
            return (Criteria) this;
        }

        public Criteria andZhCodeIsNotNull() {
            addCriterion("zh_code is not null");
            return (Criteria) this;
        }

        public Criteria andZhCodeEqualTo(String value) {
            addCriterion("zh_code =", value, "zhCode");
            return (Criteria) this;
        }

        public Criteria andZhCodeNotEqualTo(String value) {
            addCriterion("zh_code <>", value, "zhCode");
            return (Criteria) this;
        }

        public Criteria andZhCodeGreaterThan(String value) {
            addCriterion("zh_code >", value, "zhCode");
            return (Criteria) this;
        }

        public Criteria andZhCodeGreaterThanOrEqualTo(String value) {
            addCriterion("zh_code >=", value, "zhCode");
            return (Criteria) this;
        }

        public Criteria andZhCodeLessThan(String value) {
            addCriterion("zh_code <", value, "zhCode");
            return (Criteria) this;
        }

        public Criteria andZhCodeLessThanOrEqualTo(String value) {
            addCriterion("zh_code <=", value, "zhCode");
            return (Criteria) this;
        }

        public Criteria andZhCodeLike(String value) {
            addCriterion("zh_code like", value, "zhCode");
            return (Criteria) this;
        }

        public Criteria andZhCodeNotLike(String value) {
            addCriterion("zh_code not like", value, "zhCode");
            return (Criteria) this;
        }

        public Criteria andZhCodeIn(List<String> values) {
            addCriterion("zh_code in", values, "zhCode");
            return (Criteria) this;
        }

        public Criteria andZhCodeNotIn(List<String> values) {
            addCriterion("zh_code not in", values, "zhCode");
            return (Criteria) this;
        }

        public Criteria andZhCodeBetween(String value1, String value2) {
            addCriterion("zh_code between", value1, value2, "zhCode");
            return (Criteria) this;
        }

        public Criteria andZhCodeNotBetween(String value1, String value2) {
            addCriterion("zh_code not between", value1, value2, "zhCode");
            return (Criteria) this;
        }

        public Criteria andZhNameIsNull() {
            addCriterion("zh_name is null");
            return (Criteria) this;
        }

        public Criteria andZhNameIsNotNull() {
            addCriterion("zh_name is not null");
            return (Criteria) this;
        }

        public Criteria andZhNameEqualTo(String value) {
            addCriterion("zh_name =", value, "zhName");
            return (Criteria) this;
        }

        public Criteria andZhNameNotEqualTo(String value) {
            addCriterion("zh_name <>", value, "zhName");
            return (Criteria) this;
        }

        public Criteria andZhNameGreaterThan(String value) {
            addCriterion("zh_name >", value, "zhName");
            return (Criteria) this;
        }

        public Criteria andZhNameGreaterThanOrEqualTo(String value) {
            addCriterion("zh_name >=", value, "zhName");
            return (Criteria) this;
        }

        public Criteria andZhNameLessThan(String value) {
            addCriterion("zh_name <", value, "zhName");
            return (Criteria) this;
        }

        public Criteria andZhNameLessThanOrEqualTo(String value) {
            addCriterion("zh_name <=", value, "zhName");
            return (Criteria) this;
        }

        public Criteria andZhNameLike(String value) {
            addCriterion("zh_name like", value, "zhName");
            return (Criteria) this;
        }

        public Criteria andZhNameNotLike(String value) {
            addCriterion("zh_name not like", value, "zhName");
            return (Criteria) this;
        }

        public Criteria andZhNameIn(List<String> values) {
            addCriterion("zh_name in", values, "zhName");
            return (Criteria) this;
        }

        public Criteria andZhNameNotIn(List<String> values) {
            addCriterion("zh_name not in", values, "zhName");
            return (Criteria) this;
        }

        public Criteria andZhNameBetween(String value1, String value2) {
            addCriterion("zh_name between", value1, value2, "zhName");
            return (Criteria) this;
        }

        public Criteria andZhNameNotBetween(String value1, String value2) {
            addCriterion("zh_name not between", value1, value2, "zhName");
            return (Criteria) this;
        }

        public Criteria andZhSubjectsIsNull() {
            addCriterion("zh_subjects is null");
            return (Criteria) this;
        }

        public Criteria andZhSubjectsIsNotNull() {
            addCriterion("zh_subjects is not null");
            return (Criteria) this;
        }

        public Criteria andZhSubjectsEqualTo(String value) {
            addCriterion("zh_subjects =", value, "zhSubjects");
            return (Criteria) this;
        }

        public Criteria andZhSubjectsNotEqualTo(String value) {
            addCriterion("zh_subjects <>", value, "zhSubjects");
            return (Criteria) this;
        }

        public Criteria andZhSubjectsGreaterThan(String value) {
            addCriterion("zh_subjects >", value, "zhSubjects");
            return (Criteria) this;
        }

        public Criteria andZhSubjectsGreaterThanOrEqualTo(String value) {
            addCriterion("zh_subjects >=", value, "zhSubjects");
            return (Criteria) this;
        }

        public Criteria andZhSubjectsLessThan(String value) {
            addCriterion("zh_subjects <", value, "zhSubjects");
            return (Criteria) this;
        }

        public Criteria andZhSubjectsLessThanOrEqualTo(String value) {
            addCriterion("zh_subjects <=", value, "zhSubjects");
            return (Criteria) this;
        }

        public Criteria andZhSubjectsLike(String value) {
            addCriterion("zh_subjects like", value, "zhSubjects");
            return (Criteria) this;
        }

        public Criteria andZhSubjectsNotLike(String value) {
            addCriterion("zh_subjects not like", value, "zhSubjects");
            return (Criteria) this;
        }

        public Criteria andZhSubjectsIn(List<String> values) {
            addCriterion("zh_subjects in", values, "zhSubjects");
            return (Criteria) this;
        }

        public Criteria andZhSubjectsNotIn(List<String> values) {
            addCriterion("zh_subjects not in", values, "zhSubjects");
            return (Criteria) this;
        }

        public Criteria andZhSubjectsBetween(String value1, String value2) {
            addCriterion("zh_subjects between", value1, value2, "zhSubjects");
            return (Criteria) this;
        }

        public Criteria andZhSubjectsNotBetween(String value1, String value2) {
            addCriterion("zh_subjects not between", value1, value2, "zhSubjects");
            return (Criteria) this;
        }

        public Criteria andZhCoinIsNull() {
            addCriterion("zh_coin is null");
            return (Criteria) this;
        }

        public Criteria andZhCoinIsNotNull() {
            addCriterion("zh_coin is not null");
            return (Criteria) this;
        }

        public Criteria andZhCoinEqualTo(String value) {
            addCriterion("zh_coin =", value, "zhCoin");
            return (Criteria) this;
        }

        public Criteria andZhCoinNotEqualTo(String value) {
            addCriterion("zh_coin <>", value, "zhCoin");
            return (Criteria) this;
        }

        public Criteria andZhCoinGreaterThan(String value) {
            addCriterion("zh_coin >", value, "zhCoin");
            return (Criteria) this;
        }

        public Criteria andZhCoinGreaterThanOrEqualTo(String value) {
            addCriterion("zh_coin >=", value, "zhCoin");
            return (Criteria) this;
        }

        public Criteria andZhCoinLessThan(String value) {
            addCriterion("zh_coin <", value, "zhCoin");
            return (Criteria) this;
        }

        public Criteria andZhCoinLessThanOrEqualTo(String value) {
            addCriterion("zh_coin <=", value, "zhCoin");
            return (Criteria) this;
        }

        public Criteria andZhCoinLike(String value) {
            addCriterion("zh_coin like", value, "zhCoin");
            return (Criteria) this;
        }

        public Criteria andZhCoinNotLike(String value) {
            addCriterion("zh_coin not like", value, "zhCoin");
            return (Criteria) this;
        }

        public Criteria andZhCoinIn(List<String> values) {
            addCriterion("zh_coin in", values, "zhCoin");
            return (Criteria) this;
        }

        public Criteria andZhCoinNotIn(List<String> values) {
            addCriterion("zh_coin not in", values, "zhCoin");
            return (Criteria) this;
        }

        public Criteria andZhCoinBetween(String value1, String value2) {
            addCriterion("zh_coin between", value1, value2, "zhCoin");
            return (Criteria) this;
        }

        public Criteria andZhCoinNotBetween(String value1, String value2) {
            addCriterion("zh_coin not between", value1, value2, "zhCoin");
            return (Criteria) this;
        }

        public Criteria andZhBankIsNull() {
            addCriterion("zh_bank is null");
            return (Criteria) this;
        }

        public Criteria andZhBankIsNotNull() {
            addCriterion("zh_bank is not null");
            return (Criteria) this;
        }

        public Criteria andZhBankEqualTo(String value) {
            addCriterion("zh_bank =", value, "zhBank");
            return (Criteria) this;
        }

        public Criteria andZhBankNotEqualTo(String value) {
            addCriterion("zh_bank <>", value, "zhBank");
            return (Criteria) this;
        }

        public Criteria andZhBankGreaterThan(String value) {
            addCriterion("zh_bank >", value, "zhBank");
            return (Criteria) this;
        }

        public Criteria andZhBankGreaterThanOrEqualTo(String value) {
            addCriterion("zh_bank >=", value, "zhBank");
            return (Criteria) this;
        }

        public Criteria andZhBankLessThan(String value) {
            addCriterion("zh_bank <", value, "zhBank");
            return (Criteria) this;
        }

        public Criteria andZhBankLessThanOrEqualTo(String value) {
            addCriterion("zh_bank <=", value, "zhBank");
            return (Criteria) this;
        }

        public Criteria andZhBankLike(String value) {
            addCriterion("zh_bank like", value, "zhBank");
            return (Criteria) this;
        }

        public Criteria andZhBankNotLike(String value) {
            addCriterion("zh_bank not like", value, "zhBank");
            return (Criteria) this;
        }

        public Criteria andZhBankIn(List<String> values) {
            addCriterion("zh_bank in", values, "zhBank");
            return (Criteria) this;
        }

        public Criteria andZhBankNotIn(List<String> values) {
            addCriterion("zh_bank not in", values, "zhBank");
            return (Criteria) this;
        }

        public Criteria andZhBankBetween(String value1, String value2) {
            addCriterion("zh_bank between", value1, value2, "zhBank");
            return (Criteria) this;
        }

        public Criteria andZhBankNotBetween(String value1, String value2) {
            addCriterion("zh_bank not between", value1, value2, "zhBank");
            return (Criteria) this;
        }

        public Criteria andZhStatusIsNull() {
            addCriterion("zh_status is null");
            return (Criteria) this;
        }

        public Criteria andZhStatusIsNotNull() {
            addCriterion("zh_status is not null");
            return (Criteria) this;
        }

        public Criteria andZhStatusEqualTo(String value) {
            addCriterion("zh_status =", value, "zhStatus");
            return (Criteria) this;
        }

        public Criteria andZhStatusNotEqualTo(String value) {
            addCriterion("zh_status <>", value, "zhStatus");
            return (Criteria) this;
        }

        public Criteria andZhStatusGreaterThan(String value) {
            addCriterion("zh_status >", value, "zhStatus");
            return (Criteria) this;
        }

        public Criteria andZhStatusGreaterThanOrEqualTo(String value) {
            addCriterion("zh_status >=", value, "zhStatus");
            return (Criteria) this;
        }

        public Criteria andZhStatusLessThan(String value) {
            addCriterion("zh_status <", value, "zhStatus");
            return (Criteria) this;
        }

        public Criteria andZhStatusLessThanOrEqualTo(String value) {
            addCriterion("zh_status <=", value, "zhStatus");
            return (Criteria) this;
        }

        public Criteria andZhStatusLike(String value) {
            addCriterion("zh_status like", value, "zhStatus");
            return (Criteria) this;
        }

        public Criteria andZhStatusNotLike(String value) {
            addCriterion("zh_status not like", value, "zhStatus");
            return (Criteria) this;
        }

        public Criteria andZhStatusIn(List<String> values) {
            addCriterion("zh_status in", values, "zhStatus");
            return (Criteria) this;
        }

        public Criteria andZhStatusNotIn(List<String> values) {
            addCriterion("zh_status not in", values, "zhStatus");
            return (Criteria) this;
        }

        public Criteria andZhStatusBetween(String value1, String value2) {
            addCriterion("zh_status between", value1, value2, "zhStatus");
            return (Criteria) this;
        }

        public Criteria andZhStatusNotBetween(String value1, String value2) {
            addCriterion("zh_status not between", value1, value2, "zhStatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}